Silk Mobile

Table of Contents (Homepage)

Event Recording - iOS

Event recording for iOS devices can be done on the Device's reflection only to create events, which will be added to the test.

Step 1: Click on the "Device" tab, and then click on 'Event Recording' button.

images/download/attachments/2688804/1.jpg

Event recording module.

images/download/attachments/2688804/2.jpg

Step 2: Choose the device to record with and Click on the 'Record' button.

images/download/attachments/2688804/3.jpg

Step 3: Perform an action on the device's screen using your mouse.

Note: It should be a single action

Step 4: When you finish recording, click on the 'Stop' button.

images/download/attachments/2688804/4.jpg

Step 5: Click on the 'Play' button to see if the action has been recorded the way you wanted.

images/download/attachments/2688804/5.jpg

Step 6: Click on 'Save' button in order to save the event.

Saving the event will enable us to use it on the tests.

images/download/attachments/2688804/6.jpg

On the following example we will drag the slider to change its value.

images/download/attachments/2688804/7.jpg

We will same the event by the name the event 'Sliding'.

images/download/attachments/2688804/8.jpg

You will then be ask you if you want to add this event in your current script.

images/download/attachments/2688804/80.jpg

Clicking 'Yes' will add a new step at the end of the script.

Step 7: The command to execute the event is "sendText"

The Text parameter will be {event:event name} .

images/download/attachments/2688804/10.jpg

Code Examples

Java Example
client.sendText("{event:Sliding}");
C# Example
client.SendText("{event:Sliding}");
VBScript Example
client.SendText "{event:Sliding}"
ReportĀ 
Python Example
self.client.sendText("{event:Sliding}")
Perl Example
$client->sendText("{event:Sliding}");